package com.fwj;

/**
 * @author stone.feng
 * @since 2019-09-27
 */
public class Test {
    public static void main(String[] args) {
        testSwitch(2);
    }


    public static void testSwitch(int val) {
        switch (val) {
            case 1:
                System.out.println(1);
            case 2:
                System.out.println(2);
            case 3:
                System.out.println(3);
                break;
            default:
                System.out.println(111);
        }

    }
}
